package com.rpframework.website.device.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.rpframework.core.BaseService;
import com.rpframework.utils.Pager;
import com.rpframework.website.device.dao.IAddDao;
import com.rpframework.website.device.domain.Add;

@Service
public class AddService extends BaseService{
	public @Resource IAddDao iDao;
	
	public Pager<Add> getPager(Pager<Add> pager) {
		long startTime = System.currentTimeMillis();
		List<Add> itemList = iDao.doPager(this.packageMyBatisParam(pager));
		pager.setItemList(itemList);
		pager.setCostTime(System.currentTimeMillis()-startTime);
		return pager;
	}


}
